package yixaun.tim.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author pengshiqing
 * @Date: 2019/6/22
 * @Description:
 */

@ConfigurationProperties(prefix = "yixuan.tim")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TimProperties {

    /** 腾讯IM appId */
    @NonNull
    private Long appId;

    @NonNull
    private String adminIdentifier;

    /** privateKey 文件地址，如果在包内需要加上classpath: */
    @NonNull
    private String privateKey;

    private Long accountType;

    private int reqReTryCount = 3;
}
